//
//  CTActivitorView.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/4/24.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    CTActivitorViewDefault = 1,
    CTActivitorViewLongShadow
}CTActivitorViewType;

@protocol CTActivitorViewDelegate;

@interface CTActivitorView : UIView

@property(nonatomic,assign)id<CTActivitorViewDelegate>delegate;

//传统加载
-(void)showActivitorViewOn:(UIView *)view;
-(void)showActivitorViewOn:(UIView *)view withType:(CTActivitorViewType)type;
-(void)removeActivitorView;


//加载
-(void)showMoeMarkActivitorViewOn:(UIView *)view;
-(void)removeMoeMarkActivitorView;


//网挂了、加载失败
-(void)showLoadingFailedActivitorViewOn:(UIView *)view withText:(NSString *)text;
-(void)removeLoadingFailedActivitorView;

@end


@protocol CTActivitorViewDelegate <NSObject>

-(void)activitorViewLoadingFailed:(CTActivitorView *)view;

@end